package com.qxmly.fm.adapters;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;

import com.qxmly.fm.utils.FragementCreator;
/**
 * Q
 * Date:2021/11/23$
 **/
public class MainContentAdapter extends FragmentPagerAdapter {
    public  MainContentAdapter(FragmentManager fm){
        super(fm);
    }

    @NonNull
    @Override
    public Fragment getItem(int position) {
        return FragementCreator.getFragement(position);
    }

    @Override
    public int getCount() {
        return FragementCreator.PAGE_COUNT;
    }
}
